<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改用户</title>
<link rel="Stylesheet" href="../css/main.css" type="text/css" />
<script type="text/javascript">
	rids = eval({#$rids#});
	uinfo = eval({#$uinfo#});
</script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/Util.js"></script>
<script type="text/javascript" src="../home/js/navbar.js"></script>
<script type="text/javascript" src="../home/js/adduser.js"></script>
<script type="text/javascript" src="../home/js/modifyuser.js"></script>
</head>
<body>
<div class="pagecontent">
	<div class="pagehead">
		{#include_php file='../home/head.php' once=true#}
	</div>
	<div class="pagebody">
		<div class="bodyleft">
			{#include_php file='../home/navbar.php' once=true#}
		</div>		
		<div class="bodyright">
			<h2>修改用户</h2>
			<div class="sepline"></div>
			<div>
				<form class="aduserform" action="../home/domodifyuser.php" method="post">
					<ul>
						<li><label>用户名：</label><input class="textfield" type="text" name="uname" id="uname" /></li>
						<li><label>职&nbsp;&nbsp;位：</label><input class="textfield" type="text" id="job" name="job" /></li>
						<li><label>密&nbsp;&nbsp;码：</label><input class="textfield" type="password" id="pwd" name="pwd" /></li>
						<li><label>确认密码</label><input class="textfield" type="password" id="cpwd" name="cpwd" /></li>
						<li class="sepline2"></li>
						<li>
							<ul class="userright">
								<li><label for="useradmin">用户管理权限</label><input type="checkbox" name="useradmin" id="useradmin" /></li>
								<li><label for="addproduct">添加焊接数据权限</label><input type="checkbox" name="addproduct" id="addproduct" /></li>
								<li>
									<div>
										<span style="float:left;">车辆类型管理权限：&nbsp;</span>
										<span style="float:right; margin-right:150px;">
											<input type="checkbox" name="addtype" id="addtype" /><label for="addtype">添加</label>&nbsp;
											<input type="checkbox" name="modifytype" id="modifytype" /><label for="modifytype">修改</label>&nbsp;
											<input type="checkbox" name="deletetype" id="deletetype" /><label for="deletetype">删除</label>
											<input type="hidden" name="uid" value="{#$uid#}" />
										</span>										
									</div>
									<div style="clear:both; "></div>
								</li>
								<li class="sepline2"></li>
								<!--{foreach from=$products item=product}-->
								<li>
									<div>
										<span style="float:left;">{#$product.pid#} 号数据：&nbsp;</span>
										<span style="float:right; margin-right:150px;">
											<input type="checkbox" name="viewproduct{#$product.pid#}" id="viewproduct{#$product.pid#}" /><label for="viewproduct{#$product.pid#}">查看</label>&nbsp;
											<input type="checkbox" name="modifyproduct{#$product.pid#}" id="modifyproduct{#$product.pid#}" /><label for="modifyproduct{#$product.pid#}">修改</label>&nbsp;
											<input type="checkbox" name="deleteproduct{#$product.pid#}" id="deleteproduct{#$product.pid#}" /><label for="deleteproduct{#$product.pid#}">删除</label>
										</span>										
									</div>
									<div style="clear:both;"></div>
								</li>
								<!--{foreachelse}-->
								<li>还没有焊接数据呢！请以后再设置该用户的焊接数据权限</li>
								<!--{/foreach}-->
							</ul>
						</li>
						<li class="sepline2"></li>
						<li><input type="submit" class="bgbut" style="margin-left:250px;" value="保存修改" /></li>
					</ul>
				</form>
			</div>
		</div>		
	</div>	
	<div class="pagetail">
	{#include_php file='../home/footer.php' once=true#}
	</div>
</div>
</body>
</html>